package org.example.controller.common.permission;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * 权限元素存储对象
 */
@Data
public class PermissionObject implements Comparable<PermissionObject> {

    private String Name;

    private int Order;

    private Boolean IsCheck = false;

    private List<PermissionObject> Children;

    private List<PermissionObject> PermissionList;

    @Override
    public int compareTo(@NotNull PermissionObject o) {
        return this.Order - o.Order;
    }
}
